<?php
	include("session.inc");
  	include("dbconn.inc");
	include("dbfuc.inc");
	

$str = "SUCCESS";
$logname= md5($str);
	$today=date('d-m-y');
echo $today;
/*	
if (md5($str) == '8b1a9953c4611296a827abf8c47804d7')
  {
  echo "<br />Hello world!";
  //exit;
  }
*/	//insert testtable
/*				$sqltesttable="insert into test_table(n_id,test1,test2) values('1',md5('$str'),'$str')";
				mysql_query($sqltesttable);

	$query  = "select test1,test2 from test_table WHERE test1= '$logname' and test2='ambady'  ";
	$result = mysql_query($query); 
	$numR   = mysql_num_rows($result);
	if ($numR == 1) 
	{ 
		$numR=$numR-1;
		$username=mysql_result($result,$numR,"test1");
		//echo $username;
	} 	
if (md5($str) ==$username)
  {
  echo "<br />Hello world!";
  //exit;
  }
  else
  {
  echo "<br />Sorry!";
  }
	
/*
//exception checking
			try{
				//throw new Exception("Error occured in insertion");	
	//insert testtable
				$sqltesttable="insert into test_table(n_id-5,test1,test2) values('1','kamash1234567890','ambady')";
				mysql_query($sqltesttable);
				echo "haiii";
				}
				catch(Exception $e)
				{
				echo $e;
				echo 'Message: ' .$e->getMessage();
				}
*/		
/*	$logname="KAMASH";
	$password="KAMASH";
	$query  = "select pc_username,c_password from  mlm_login WHERE pc_username = '$logname' and c_password='$password'  ";
	$result = mysql_query($query); 
	$numR   = mysql_num_rows($result);
	if ($numR == 1) 
	{ 
		$numR=$numR-1;
		$username=mysql_result($result,$numR,"pc_username");
		echo "success";
		$nUplineId=get_id($username);
		echo "id".$nUplineId;
	} 
	else 
	{  
		$errorstep=false;
		echo "Invalid User Name/Password";
	}  	
*/
?>